package com.inspector.app.util

import com.example.commen.resource.CommentContect
import com.inspector.app.di.network.api.LoginInfo
import com.inspector.app.di.network.api.MenuTreeApi
import com.inspector.app.di.network.api.UserInfoApi

object CommenArgs : CommentContect() {
    /**
     * 登录用户信息
     */
    @JvmField
    var userInfo: UserInfoApi.UserInfo? = null

    object Trees {
        /**
         * 首页底部导航
         */
        @JvmField
        var menuTree: MutableList<MenuTreeApi.MenuTrueInfoData> = mutableListOf()

        /**
         * 首页menu
         */
        @JvmField
        var homeTree: MutableList<MenuTreeApi.MenuTrueChildren> = mutableListOf()

        /**
         * 首页飞行计划审核menu
         */
        @JvmField
        var FlyPlanTree: MutableList<MenuTreeApi.MenuTrueChildren2> = mutableListOf()
        /**
         * 首页飞行计划列表筛选全部大队 menu
         */
        @JvmField
        var FlyPlanAll_Flying_GroupTree: MutableList<MenuTreeApi.MenuTrueChildren2> = mutableListOf()

        /**
         * 首页飞行计划列表筛选基地menu 航务角色有
         */
        @JvmField
        var FlyPlanAll_Flying_BaseTree: MutableList<MenuTreeApi.MenuTrueChildren2> = mutableListOf()

        /**
         * 首页飞行计划航务统计menu
         */
        @JvmField
        var FlyPlan_Aviation_Statistics: MutableList<MenuTreeApi.MenuTrueChildren2> = mutableListOf()
        /**
         * 首页飞行计划教员筛选menu
         */
        @JvmField
        var FlyTask_Flying_Tree: MutableList<MenuTreeApi.MenuTrueChildren2> = mutableListOf()

        /**
         * 添加menu
         */
        @JvmField
        var addTree: MutableList<MenuTreeApi.MenuTrueChildren> = mutableListOf()

        object MyTree {
            /**
             * 我的menu
             */
            @JvmField
            var MyMenuTree: MutableList<MenuTreeApi.MenuTrueChildren> = mutableListOf()

            /**个人资料菜单*/
            var MyMenu_Userinfo: MutableList<MenuTreeApi.MenuTrueChildren2> = mutableListOf()

            /**流程项菜单*/
            var MyMenu_Flow: MutableList<MenuTreeApi.MenuTrueChildren2> = mutableListOf()
        }
        object MainTree{
            var isTaskBookBasePermission = false
        }

    }

    /**
     * 一级菜单树id
     */
    interface MenuTreeId {
        companion object {
            @JvmField
            val MyJiWu = "my_jiwu"//637//我的机务

            @JvmField
            val everyDayState = "num_status"//638//航空器每日状态

            @JvmField
            val maintain = "jiwu_maintain"//601//658//机务维修

            @JvmField
            val air_control = "air_control"//601//658//维修监控


            @JvmField
            val JWJC = "jiwu_check"//机务检查 //0//航前检查

            @JvmField
            val FXJL = "fly_info"//1//飞行记录

            @JvmField
            val JWWX = "jiwu_maintain"//2//机务维修

            @JvmField
            val HCGL = "hangcai"//3//航材管理
        }
    }

    /**
     * 我的机务menu
     */
    @JvmField
    var MyMenuTree: ArrayList<MenuTreeApi.MenuTrueChildren> = arrayListOf()

    /**
     * 登录信息(token)
     */
    @JvmField
    var loginInfo = LoginInfo()

    fun setIsLogin(islogin: Boolean) {
        isLogin = islogin
    }

    fun getIsLogin(): Boolean {
        return isLogin
    }
}
